package com.sc.study.sleeproom.service;

import java.util.List;
import com.sc.study.sleeproom.domain.ScSleepRoom;

/**
 * 寝室Service接口
 * 
 * @author sc
 * @date 2022-03-14
 */
public interface IScSleepRoomService 
{
    /**
     * 查询寝室
     * 
     * @param id 寝室主键
     * @return 寝室
     */
    public ScSleepRoom selectScSleepRoomById(Long id);

    /**
     * 查询寝室列表
     * 
     * @param scSleepRoom 寝室
     * @return 寝室集合
     */
    public List<ScSleepRoom> selectScSleepRoomList(ScSleepRoom scSleepRoom);

    /**
     * 新增寝室
     * 
     * @param scSleepRoom 寝室
     * @return 结果
     */
    public int insertScSleepRoom(ScSleepRoom scSleepRoom);

    /**
     * 修改寝室
     * 
     * @param scSleepRoom 寝室
     * @return 结果
     */
    public int updateScSleepRoom(ScSleepRoom scSleepRoom);

    /**
     * 批量删除寝室
     * 
     * @param ids 需要删除的寝室主键集合
     * @return 结果
     */
    public int deleteScSleepRoomByIds(Long[] ids);

    /**
     * 删除寝室信息
     * 
     * @param id 寝室主键
     * @return 结果
     */
    public int deleteScSleepRoomById(Long id);



    /**
     * 获取当前班级 管理的寝室
     * zwt
     * @param clazzId
     * @param sex
     */
    List<ScSleepRoom> getClazzForRooms(Integer clazzId, String sex);

    /**
     * 查询所有寝室不分页
     * @param sleepRoomName   栋 + 层 + 名称 模糊查询
     * @param sex
     * @return
     */
    List<ScSleepRoom>  getSleepRoomList(String sleepRoomName, String sex);
}
